#include<bits/stdc++.h>
using namespace std;

struct gs{
    bool fight,leave;
    int r;
};
long long ans=0;
int n;
gs card[100005];

bool cmp(gs one,gs two){
    return one.r<two.r;
}

int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;ans=n;
    for(int i=0;i<n;i++){
        cin>>card[i].r;
    }
    sort(card,card+n,cmp);
    for(int i=0;i<n;i++){
        for(int j=i;j<n;j++){
            if(card[j].fight==1)continue;
            if(card[j].r>card[i].r){
                ans-=1;
                card[i].leave=1;
                card[j].fight=1;
                break;
            }
        }
    }
    cout<<ans;
    return 0;
}
